/*
 *email: chen983@sina.com
 */
#define SQLCA_STORAGE_CLASS extern
#include <sqlca.h>
#include "reader.h"
#include "command.h"

namespace Oracle
{

Reader::Reader(void *ctx, Command &command):_command(command)
{
	_ctx = ctx;
	_commandText = command.commandText.c_str();
	_open = false;
}

Reader::~Reader()
{
}

void Reader::rtrim(char *str)
{
	int len = (int)strlen(str);
	int i;
	
	for (i=len-1; i>=0; i--){
		if (str[i]!=' ' && str[i]!='\t'){
			break;
		}
	}
	str[i+1]=0;
}

};
